<form name="form_admin"  method="POST" action="<?php echo formEditAction()?>" onsubmit="return check(this)" enctype="multipart/form-data">
<input type="hidden" name="id" value="<?php echo $id?>">
<table width="100%"  cellpadding="0" cellspacing="0" id="tbledit">
	<tr>
		<td width="100"><strong><?php echo _NAME?></strong></td>
		<td colspan="2"><input name="cName" id="cName" value="<?php echo $advertise['cName']?>" type="text" class="normal3" /></td>
	</tr>

	<tr>
		<td width="100"><strong><?php echo _ADDRESS?></strong></td>
	  <td colspan="2"><input name="Address" id="Address" value="<?php echo $advertise['cAddress']?>" type="text" class="normal3" /></td>
	</tr>
	<tr>
	  <td><strong><?php echo _PHONE?></strong></td>
	  <td colspan="2"><input name="Phone" id="Phone" value="<?php echo $advertise['cPhone']?>" type="text" class="normal3" /></td>
    </tr>
	<tr>
	  <td><strong><?php echo _EMAIL?></strong></td>
	  <td colspan="2"><input name="Email" id="Email" value="<?php echo $advertise['cEmail']?>" type="text" class="normal3" /></td>
    </tr>
	<tr>
	  <td><strong><?php echo _PLACE?></strong></td>
	  <td colspan="2">
	  		<select name="Place" id="Place" style="width:140">
				<?php echo list_place_Ad($advertise['iPlace'])?>
			</select>
	</td>
    </tr>
	<tr>
	  <td><strong><?php echo Status?></strong></td>
	  <td colspan="2"><select name="Status" id="Status" style="width:140">
        <?php echo ListStatus($advertise['iStatus'])?>
      </select></td>
    </tr>
	<tr>
		<td><strong><?php echo Image?></strong></td>
		<td colspan="2">
            <?php echo inputFile('ImgIntro',$advertise["cImageLink"])?>
		</td>
	</tr>
	<tr>
	  <td height="5" colspan="3"></td>
    </tr>
	<tr>
	  <td><strong><?php echo _LINK?></strong></td>
	  <td colspan="2">
	  	<input name="Link" id="Link" type="text" class="normal3"  value="<?php echo $advertise['cUrlString']?>"/>
	  	Open new Window <input type="checkbox" name="OpenNewWindow" <?php if($advertise['iOpenNew']==1)echo 'checked'?> />
	  </td>
    </tr>
	<tr>
		<td><strong><?php echo _DESCRIPTION?></strong></td>
		<td colspan="2">
			<textarea name="Description" id="Description" style="width: 90%; height:100"><?php echo $advertise['cDescription']?></textarea>		</td>
	</tr>

</table>
</form>
<script>
function check(form)
{
	if(form.cName.value=="")
	{
		alert("Please enter name");
		form.cName.focus();
		return false;
	}
	if(form.ImgIntro.value=="")
	{
		alert("Please choise image");
		form.ImgIntro.focus();
		return false;
	}
	return AIM.submit(form,null,true);
}
</script>